<?php

namespace Managers;

class Problem extends \Lib\Model\DoctrineManager{

    
    public function getAllProblems() {
        
        $em = $this->getEntityManager();
        $qb = $em->createQueryBuilder()
                ->select('p')
                ->from('Entities\Problem', 'p');

        $result = $qb->getQuery()->getResult();
        return $result;
        
    }
    
}